package top.continew.admin.business.model.req;

import java.io.Serial;
import java.io.Serializable;

import jakarta.validation.constraints.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;


/**
 * 创建或修改知识点树信息
 *
 * @author sheng_chao
 * @since 2025/03/05 10:51
 */
@Data
@Schema(description = "创建或修改知识点树信息")
public class KnowledgePointTreeReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Schema(description = "")
    @NotBlank(message = "不能为空")
    @Length(max = 255, message = "长度不能超过 {max} 个字符")
    private String name;


    /**
     * 状态（1：启用；2：禁用）
     */
    @Schema(description = "状态（1：启用；2：禁用）")
    @NotNull(message = "状态（1：启用；2：禁用）不能为空")
    private Integer status;

    /**
     * 上级id
     */
    @Schema(description = "上级id")
    @NotNull(message = "上级id不能为空")
    private Long parentId;
    /**
     * 上级id
     */
    @Schema(description = "规格类型id")
    @NotNull(message = "规格类型id不能为空")
    private Long specificationTypeId;

    private String path;

}